all: client server

client:client-*.cpp
	g++ -std=c++11 client-req.cpp   -o main-client-req -lzmq -lpthread -g
	g++ -std=c++11 subscriber.cpp   -o main-subscriber -lzmq -lpthread -g
	g++ -std=c++11 pusher.cpp       -o main-pusher -lzmq -lpthread -g
	g++ -std=c++11 sender.cpp       -o main-sender -lzmq -lpthread -g
	g++ -std=c++11 client.cpp       -o main-client -lzmq -lpthread -g

server:server-*.cpp
	g++ -std=c++11 server-rep.cpp -o main-server-rep -lzmq -lpthread -g
	g++ -std=c++11 publisher.cpp  -o main-publisher -lzmq -lpthread -g
	g++ -std=c++11 puller.cpp     -o main-puller -lzmq -lpthread -g
	g++ -std=c++11 receiver.cpp   -o main-receiver -lzmq -lpthread -g
	g++ -std=c++11 server.cpp     -o main-server -lzmq -lpthread -g

clean:
	rm -f main-*


